const three = this.pageObj.getApiWidgetByAliasName('三维组件')?.widgetObj
const artemis = three?.artemis;
const data = this.getVariables().find(v => v.name === "screen_params")?.value
const params = JSON.parse(data)

async function queryFetch() {
  const option = {
    method: 'POST',
    headers: {
      "Content-type": "application/x-www-form-urlencoded",
    },
    body: 'eventId=' + params.id
  }
  const res = await fetch(`/SummaryAssessmentSV/emergencyHandle/convergedCommunication`, option);
  return await res.json()
}

if (artemis && params.id) {
  queryFetch().then(res => {
    if (res.success) {
      res.result.forEach(data => {
        data.userId = data.communicationAccount;
        data.username = data.communicationName;
        artemis.addMember(data);
      });

      artemis.createVideoMeeting();
    }
  })
}






